package tech.aistar.day04;

import java.util.Scanner;

/**
 * 本类用来演示:
 *
 * @author: success
 * @date: 2021/3/9 4:06 下午
 */
public class ScannerTest {
    public static void main(String[] args) {
        /**
         * ==1==
         * 10
         * a:10
         * ==2==
         * b:
         * ===3===
         * 1.75
         * c:1.75
         */

        Scanner sc = new Scanner(System.in);
        System.out.println("==1==");
        int a = sc.nextInt();
        System.out.println("a:"+a);

        System.out.println("==2==");
        String b = sc.nextLine();//失效
        System.out.println("b:"+b);

        System.out.println("===3===");
        double c = sc.nextDouble();
        System.out.println("c:"+c);
    }
}
